// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_j;

import com.nnee.p_pr.p_a.cls_i;
import java.io.*;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;

public class cls_e
{

    public cls_e()
    {
    }

    public static int a()
    {
        int k = Integer.valueOf(android.os.Build.VERSION.SDK).intValue();
        int j = k;
 
        return j;
//        NumberFormatException numberformatexception;
//        numberformatexception;
//        j = 5;
//        if(true) goto _L2; else goto _L1
//_L1:
    }

    public static long a(String s)
    {
        return cls_i.c(s);
    }

    public static InputStream a(InputStream inputstream)
    {
        try {
			return new GZIPInputStream(inputstream);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
    }

    public static byte[] a(byte abyte0[])
    {
    	int j=0;
    	
        GZIPInputStream gzipinputstream=null;
		try {
			gzipinputstream = new GZIPInputStream(new ByteArrayInputStream(abyte0));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
        byte abyte1[] = new byte[8192];
        
        do
        {
            
			try {
				j = gzipinputstream.read(abyte1);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            if(j > 0)
                bytearrayoutputstream.write(abyte1, 0, j);
            else
                return bytearrayoutputstream.toByteArray();
        } while(true);
    }

    public static byte[] b(byte abyte0[])
    {
        ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
        GZIPOutputStream gzipoutputstream=null;
		try {
			gzipoutputstream = new GZIPOutputStream(bytearrayoutputstream);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        try {
			gzipoutputstream.write(abyte0, 0, abyte0.length);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        try {
			gzipoutputstream.finish();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        return bytearrayoutputstream.toByteArray();
    }
}
